﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="OfflineData" targetNamespace="http://tempuri.org/OfflineData.xsd" xmlns:mstns="http://tempuri.org/OfflineData.xsd" xmlns="http://tempuri.org/OfflineData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="OfflineDataConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="OfflineDataConnectionString (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.OfflineLibrary_WinForms.My.MySettings.GlobalReference.Default.OfflineDataConnectionString" Provider="System.Data.SQLite" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="LanguagesTableAdapter" GeneratorDataComponentClassName="LanguagesTableAdapter" Name="Languages" UserDataComponentName="LanguagesTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="OfflineDataConnectionString (MySettings)" DbObjectName="main.Languages" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [main].[sqlite_default_schema].[Languages] WHERE (([LanguageCode] = @Original_LanguageCode) AND ([Language] = @Original_Language))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LanguageCode" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="LanguageCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Language" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="Language" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [main].[sqlite_default_schema].[Languages] ([LanguageCode], [Language]) VALUES (@LanguageCode, @Language)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LanguageCode" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="LanguageCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Language" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="Language" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        LanguageCode, Language
FROM            Languages</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [main].[sqlite_default_schema].[Languages] SET [LanguageCode] = @LanguageCode, [Language] = @Language WHERE (([LanguageCode] = @Original_LanguageCode) AND ([Language] = @Original_Language))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LanguageCode" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="LanguageCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Language" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="Language" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LanguageCode" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="LanguageCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Language" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="Language" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="LanguageCode" DataSetColumn="LanguageCode" />
              <Mapping SourceColumn="Language" DataSetColumn="Language" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PageDataTableAdapter" GeneratorDataComponentClassName="PageDataTableAdapter" Name="PageData" UserDataComponentName="PageDataTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="OfflineDataConnectionString (MySettings)" DbObjectName="main.PageData" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [main].[sqlite_default_schema].[PageData] WHERE (([URL] = @Original_URL) AND ((@IsNull_HTML = 1 AND [HTML] IS NULL) OR ([HTML] = @Original_HTML)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_URL" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="URL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_HTML" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="HTML" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_HTML" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="HTML" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [main].[sqlite_default_schema].[PageData] ([URL], [HTML]) VALUES (@URL, @HTML)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@URL" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="URL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@HTML" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="HTML" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        URL, HTML
FROM            PageData</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [main].[sqlite_default_schema].[PageData] SET [URL] = @URL, [HTML] = @HTML WHERE (([URL] = @Original_URL) AND ((@IsNull_HTML = 1 AND [HTML] IS NULL) OR ([HTML] = @Original_HTML)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@URL" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="URL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@HTML" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="HTML" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_URL" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="URL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_HTML" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="HTML" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_HTML" Precision="0" ProviderType="String" Scale="0" Size="0" SourceColumn="HTML" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="URL" DataSetColumn="URL" />
              <Mapping SourceColumn="HTML" DataSetColumn="HTML" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="OfflineDataConnectionString (MySettings)" DbObjectName="main.PageData" DbObjectType="Table" GenerateShortCommands="true" GeneratorSourceName="GetHTMLFromURL" Modifier="Public" Name="GetHTMLFromURL" QueryType="Scalar" ScalarCallRetval="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="GetHTMLFromURL">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT HTML FROM PageData WHERE URL=@URL</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="URL" ColumnName="URL" DataSourceName="main.PageData" DataTypeServer="text" DbType="String" Direction="Input" ParameterName="@URL" Precision="0" ProviderType="String" Scale="0" Size="2147483647" SourceColumn="URL" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="OfflineData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="OfflineData" msprop:Generator_UserDSName="OfflineData">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Languages" msprop:Generator_TableClassName="LanguagesDataTable" msprop:Generator_TableVarName="tableLanguages" msprop:Generator_TablePropName="Languages" msprop:Generator_RowDeletingName="LanguagesRowDeleting" msprop:Generator_RowChangingName="LanguagesRowChanging" msprop:Generator_RowEvHandlerName="LanguagesRowChangeEventHandler" msprop:Generator_RowDeletedName="LanguagesRowDeleted" msprop:Generator_UserTableName="Languages" msprop:Generator_RowChangedName="LanguagesRowChanged" msprop:Generator_RowEvArgName="LanguagesRowChangeEvent" msprop:Generator_RowClassName="LanguagesRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="LanguageCode" msprop:Generator_ColumnVarNameInTable="columnLanguageCode" msprop:Generator_ColumnPropNameInRow="LanguageCode" msprop:Generator_ColumnPropNameInTable="LanguageCodeColumn" msprop:Generator_UserColumnName="LanguageCode">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Language" msprop:Generator_ColumnVarNameInTable="columnLanguage" msprop:Generator_ColumnPropNameInRow="Language" msprop:Generator_ColumnPropNameInTable="LanguageColumn" msprop:Generator_UserColumnName="Language">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PageData" msprop:Generator_TableClassName="PageDataDataTable" msprop:Generator_TableVarName="tablePageData" msprop:Generator_TablePropName="PageData" msprop:Generator_RowDeletingName="PageDataRowDeleting" msprop:Generator_RowChangingName="PageDataRowChanging" msprop:Generator_RowEvHandlerName="PageDataRowChangeEventHandler" msprop:Generator_RowDeletedName="PageDataRowDeleted" msprop:Generator_UserTableName="PageData" msprop:Generator_RowChangedName="PageDataRowChanged" msprop:Generator_RowEvArgName="PageDataRowChangeEvent" msprop:Generator_RowClassName="PageDataRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="URL" msprop:Generator_ColumnVarNameInTable="columnURL" msprop:Generator_ColumnPropNameInRow="URL" msprop:Generator_ColumnPropNameInTable="URLColumn" msprop:Generator_UserColumnName="URL">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="HTML" msprop:Generator_ColumnVarNameInTable="columnHTML" msprop:Generator_ColumnPropNameInRow="HTML" msprop:Generator_ColumnPropNameInTable="HTMLColumn" msprop:Generator_UserColumnName="HTML" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Languages" />
      <xs:field xpath="mstns:LanguageCode" />
    </xs:unique>
    <xs:unique name="Constraint2">
      <xs:selector xpath=".//mstns:Languages" />
      <xs:field xpath="mstns:Language" />
    </xs:unique>
    <xs:unique name="PageData_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PageData" />
      <xs:field xpath="mstns:URL" />
    </xs:unique>
  </xs:element>
</xs:schema>